#ifndef FTBROWSER_H
#define FTBROWSER_H

#include <QtGui>
#include <QtWebKit/QWebView>
#include "rotatingdialog.h"
#include "flickcharm.h"

class FTPushButton;

class FTBrowser : public RotatingDialog
{
    Q_OBJECT
public:
    explicit FTBrowser(const QString& url = "");
    explicit FTBrowser(const QUrl&);

signals:

public slots:
    void loadStarted();
    void loadProgress(int);
    void loadFinished(bool);

private:
    FlickCharm flick;
    void initialize(const QUrl&);

    QProgressBar* load_progress;

    QWebView* webView;
    FTPushButton* closeButton;

    QLayout* createVertical();
};

#endif // FTBROWSER_H
